package com.sls.web.manager.recharge.service;

import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;
import com.sls.web.manager.recharge.pojo.Supplier;
import com.sls.web.manager.recharge.querybean.SupplierQuery;

public interface SupplierService {
	/**
	 * 添加供货商
	 * 
	 * @param supplier
	 * @param userinfo
	 * @return
	 * @throws Exception
	 */
	public boolean addSupplier(Supplier supplier, UserInfoVO userinfo)
			throws Exception;

	/**
	 * 查询供货商列表
	 * 
	 * @param supplier
	 * @param userinfo
	 * @return
	 */
	public Pagination<?> querySupplier(SupplierQuery rQuery, UserInfoVO userinfo)
			throws Exception;

	/**
	 * 删除供货商
	 * 
	 * @param supplier
	 * @param userinfo
	 * @return
	 * @throws Exception
	 */
	public boolean delete(String id, UserInfoVO userinfo) throws Exception;

	/**
	 * 根据id查询供货商
	 * 
	 * @param supplier
	 * @param userinfo
	 * @return
	 * @throws Exception
	 */
	public Supplier querySupplierById(String id, UserInfoVO userinfo)
			throws Exception;

	/**
	 * 修改供货商
	 * 
	 * @param supplier
	 * @param userinfo
	 * @return
	 * @throws Exception
	 */
	public boolean updateSupplier(Supplier supplier, UserInfoVO userinfo)
			throws Exception;
	/**
	 * 校验供货商接口名称是否已存在
	 * 
	 * @param ProductVO
	 * @param ip
	 * @return
	 */
	public boolean checkName(Supplier supplier, UserInfoVO userinfo);
}
